import pytest
from common.base import create_browser
from page.login import PageLogin
from page.dp import PageDP

@pytest.fixture()
def browser():
    """创建浏览器对象"""
    return create_browser()

@pytest.fixture()
def login(browser):
    """登录页实例化对象"""
    return PageLogin(browser)

@pytest.fixture()
def dp(browser):
    """大屏首页实例化对象"""
    return PageDP(browser)
